#include "bdpp/bdpp.h"
#include "benchmark/benchmark.h"

static void bm_parse_int32(benchmark::State& state) {
  const char* input_str = "123123145";
  int32_t value;
  for (auto _ : state) {
    bd::parse_int32(input_str, &value);
  }
}

static void bm_parse_double(benchmark::State& state) {
  const char* input_str = "12aasd3.45";
  double value;
  for (auto _ : state) {
    bd::parse_double(input_str, &value);
  }
}

BENCHMARK(bm_parse_int32);
BENCHMARK(bm_parse_double);